<template>
  <div>
    <search :search="searchCustomer" placeholder="请输入关键字" :show-result.sync="showResult"></search>
  </div>
</template>

<style scoped></style>

<script>
  import Vue from 'vue';
  import search from '../components/search.vue';
  export default({
    name: "search-view",
    data(){
        return {
            showResult: false,
        }
    },
    ready(){
    },
    components: {search},
    methods: {
      searchCustomer(code){  //搜素客户
        alert("点击了搜索按钮");
        alert(code);
      },

    }
  });
</script>
